* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, canvas {
    width: 100%;
    height: 100%;
}

body {
    background: #0075A2;
}

canvas {
    /* canvas is inline-block by default,
     * which aligns on baseline,
     * causing scrollbar to appear
     */
    display: block;
}

.god-mode {
    position: fixed;
    top: 0;
    left: 0;
    visibility: visible !important;

    font-family: text;
    z-index: 1000;

    color: white;
    background: rgba(0,0,0,0.4);
    text-shadow: black 0 0.1rem 0.2rem;
    opacity: 0;

    overflow: hidden;
    white-space: nowrap;

    max-width: 2px;
    max-height: 50px;

    transition: all 0.2s ease-out;
    transition-delay: 2s;
}
.god-mode:hover {
    padding: 1rem;
    opacity: 1;

    max-width: 100%;
    max-height: 100%;

    transition-delay: 2s;
}
.god-mode * {
    margin: 0.2rem;
    padding: 0.1rem;
}
.god-mode input {
    vertical-align: middle;
}
.god-mode input.precise {
    width: 500px;
}
.god-mode .display {
    display: flex;
    align-items: baseline;
    align-content: space-around;
}
.god-mode .display > * {
    flex: 1;
    align-self: center;
}
.god-mode .display > div {
    font-family: code;
}

.dom-canvas,
.dom-canvas > .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.dom-canvas > * {
    visibility: hidden;
    opacity: 0;     /* all child hidden by default, opacity will be changed by renderer */
}

.dom-canvas > .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    visibility: visible;
    opacity: 1;

    font-family: text;
    font-size: 10vmin;
    color: #83CFEC;

    transition: all 1s ease 1s;
}
.dom-canvas > .loading.done {
    visibility: hidden;
    opacity: 0;
}
.dom-canvas > .loading > * {
    font-size: 5vmin;
}

.dom-canvas > .loading > .progress {
    display: flex;
    justify-content: flex-start;
    margin: 1vmin;
    background: rgba(131, 207, 236, 0.5);
    height: 0.5vmin;
    width: 70vmin;
}
.dom-canvas > .loading > .progress > .filler {
    background: #83CFEC;
    height: 100%;
    transition: all 0.5s ease;
}

.dom-canvas > .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dom-canvas > .wrapper > .title {
    white-space: nowrap;
    font-family: title;
}

.dom-canvas > .wrapper > .content {
    overflow: hidden;
    font-family: text;
}

header {
    display: flex;
    justify-content: center;

    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

header > nav {
    display: flex;
    justify-content: flex-end;

    width: 100vmin;
}

header > nav > ul {
    list-style: none;

    display: flex;
    align-items: flex-end;
    height: 16vmin;
    opacity: 1;
    visibility: visible;

    color: #83CFEC;
    font-size: 6vmin;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: default;

    transition: all 1s ease;
}
header > nav > ul.hide {
    height: 7vmin;
    opacity: 0;
    visibility: hidden;
}

header > nav > ul > li {
    display: flex;
    align-items: flex-end;
    font-family: menu;

    padding: 0 3vmin;
    min-height: 0;

    transition: all 0.5s ease;
}
header > nav > ul > li:hover {
    min-height: 85%;
    background: rgba(0,0,0, 0.2);
    transition-duration: 0.2s;
}
header > nav > ul > li.active {
    min-height: 100%;
    border-bottom: 0.8vmin solid rgba(131, 207, 236, 0.8);
    background: rgba(0,0,0, 0.5);
    transition-duration: 0.5s;
}
header > nav > ul > li:active,
header > nav > ul > li.target {
    min-height: 95%;
    background: rgba(0,0,0, 0.4);
    transition-duration: 0.5s;
}

p:not(:last-child) {
    margin-bottom: 0.6em;
}

a, a:visited {
    color: #83CFEC;
}

b {
    color: #FFBF97;
}

code {
    font-family: code;
}

